{% extends "myadmin/base.html" %}


{% block mainbody %}

<link rel="stylesheet" type="text/css" href="/ueditor/UE/third-party/SyntaxHighlighter/shCoreDefault.css">
<script type="text/javascript" src="/ueditor/UE/third-party/SyntaxHighlighter/shCore.js"></script>
<script type="text/javascript" src="/ueditor/UE/ueditor.config.js"></script>
<script type="text/javascript" src="/ueditor/UE/ueditor.all.min.js"></script>
<script type="text/javascript" src="/ueditor/UE/lang/zh-cn/zh-cn.js"></script>

<div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">添加音频课程页面</h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form role="form" action="{% url 'myadmin_goods_autio_insert' %}" method="post" enctype="multipart/form-data">
            	{% csrf_token %}
              <div class="box-body">
                  <div class="form-group">
                    <label for="exampleInputName1">课程名称</label>
                    <input type="text" name="goods_name" class="form-control" id="exampleInputName1" value="{{ goods.goods_name }}">
                  </div>
                  <div class="form-group">
                    <label class="control-label" for="input01">课程图片</label>
                    <div class="controls">
                        <input type="file" name="pic" class="input-xlarge" id="input01"/>
                    </div>
                </div>
                  <div class="form-group">
                    <label for="exampleInputPrice1">价格(单位:元)</label>
                    <input type="number" name="price" class="form-control" id="exampleInputPrice1" placeholder="输入商品价格">
                  </div>
                  <div class="form-group">
                    <label for="exampleInputBoughtnum1">购买数量</label>
                    <input type="number" name="boughtnum" class="form-control" id="exampleInputBoughtnum1" placeholder="输入购买数量">
                  </div>
                  <div class="form-group">
                    <label for="exampleInputClicknum1">点击量</label>
                    <input type="number" name="clicknum" class="form-control" id="exampleInputClicknum1" placeholder="输入点击量">
                  </div>
              <!-- /.box-body -->

                  <div class="am-form-group">
                      <label for="user-intro" class="am-u-sm-3 am-form-label">课程图文详情</label>
                      <div class="am-u-sm-9">
                          <!-- <textarea name="descr" class="" rows="10" id="user-intro" placeholder="请输入商品简介"></textarea> -->
                          <!-- <script id="editor" type="text/plain" style="width:100%;height:500px;"></script> -->
                          <script id="editor" name="content" type="text/plain" style="height:500px;"></script>
                      </div>
                  </div>
              <div class="box-footer">
                <button type="submit" class="btn btn-primary">Submit</button>
              </div>
            </form>
          </div>





    <script type="text/javascript">
        var ue = UE.getEditor('editor');
        SyntaxHighlighter.all();
    </script>
{% endblock %}